<?php

namespace app\api\model;

use think\Model;

class Settings extends Model
{
    public static function getValue($key)
    {
        return self::where('key', $key)->value('value');
    }

    /**
     * 校长信息
     */
    public static function rector()
    {
        return [
            "name" => "Choi",
            "wechat" => "15011996662",
            "phone" => "15011996662",
            "email" => "15011996662@163.com"
        ];
    }
}
